import 'package:flutter_bili_app/http/core/hi_adapter.dart';
import 'package:flutter_bili_app/http/request/base_request.dart';

class MockAdapter extends HiNetAdapter {
  @override
  Future<HiNetResponse<T>> send<T>(BaseRequest baseRequest) {
    return Future.delayed(const Duration(milliseconds: 1000), () {

      return HiNetResponse(
          data: {"code": 0, "data": "Success"} as T,
          request: baseRequest,
          statusCode: 200);
    });
  }
}
